﻿<!DOCTYPE html>
<html lang="es">
    <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta charset="utf-8" />
        <title>@ViewBag.Title - Librería PRISA ASP.NET MVC</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Styles.Render("~/Content/bootstrapcss")
        @Scripts.Render("~/bundles/modernizr")
        @Scripts.Render("~/bundles/bootstrapjs")
        @RenderSection("styles", required: false)

    </head>
    <body>
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title"> 
                </div>
                @*FECHA Y HORA*@
                @*FECHA*@
                        <script type="text/javascript">
                            function makeArray() {
                                for (i = 0; i < makeArray.arguments.length; i++)
                                    this[i + 1] = makeArray.arguments[i];
                            }
                            var months = new makeArray('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo',
                            'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre');
                            var date = new Date();
                            var day = date.getDate();
                            var month = date.getMonth() + 1;
                            var yy = date.getYear();
                            var year = (yy < 1000) ? yy + 1900 : yy;
                            document.write("Hoy es " + day + " de " + months[month] + " del " + year);
                        </script>
                    <div id="fecha"  style="font-size:20px;background:#c7d1d6"></div>
                    @*HORA*@
                        <script type="text/javascript">
                            function startTime() {
                                today = new Date();
                                h = today.getHours();
                                m = today.getMinutes();
                                s = today.getSeconds();
                                m = checkTime(m);
                                s = checkTime(s);
                                document.getElementById('reloj').innerHTML = h + ":" + m + ":" + s;
                                t = setTimeout('startTime()', 500);
                            }
                            function checkTime(i)
                            { if (i < 10) { i = "0" + i; } return i; }
                            window.onload = function () { startTime(); }
                        </script>
                        <div id="reloj"  style="font-size:20px;"></div>
                @*FECHAY HORA*@

                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">
                            <li>@Html.ActionLink("Productos", "Index", "Producto")</li>
                            <li>@Html.ActionLink("Categorias", "Index", "Categoria")</li>
                            <li>@Html.ActionLink("Impuestos", "Index", "Impuesto")</li>
                            <li>@Html.ActionLink("Clientes", "Index", "Cliente")</li>
                            <li>@Html.ActionLink("Proveedores", "Index", "Proveedor")</li>
                            <li>@Html.ActionLink("Ventas", "Index", "Venta")</li>
                            <li>@Html.ActionLink("Créditos", "Index", "Credito")</li>
                            <li>@Html.ActionLink("Historiales", "Index", "HistorialVenta")</li>
                            <li>@Html.ActionLink("Administración de Caja", "Index", "CierreCaja")</li>
                            <li>@Html.ActionLink("Inicio", "Index", "Home")</li>
                            <li>@Html.ActionLink("Acerca de", "About", "Home")</li>
                            <li>@Html.ActionLink("Contacto", "Contact", "Home")</li>

                        </ul>
                    </nav>
                </div>
            </div>
        </header>




        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - Librería "PRISA" ASP.NET MVC</p>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        <script src="~/Scripts/underscore.js"></script>
        @RenderSection("scripts", required: false)
    </body>
</html>
